<?php

$sizeAttr = '';

$size = explode('x', $this->file->GetLength());
if ($size[0] && $size[1])
{
	$sizeAttr = ' width="' .$size[0]. '" height="' .$size[1]. '"';
}
?>
<img src="<?=_ROOT_URL_STATIC.$this->folder.$this->file->GetFile();?>" alt="<?php echo htmlspecialchars($this->file->GetTitle()); ?>"<?php echo $sizeAttr; ?>>